<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title>editor</title>
	<script type="text/javascript" src="./ckeditor/ckeditor.js"></script>
	<script type="text/javascript" src="./ckfinder/ckfinder.js"></script>
</head>
<body>
	<textarea name="editor1" id="editor1" rows="10" cols="80">Hello World </textarea>
	
<pre>
图片上传功能启用：
设置授权名称： $_SESSION['upload_grant_name'] = 'article_add';
设置上传路径（根据不同环境变化）： $_SESSION['upload_file_path'] = 'E:/Work/server/code/public/temp/article/content/';
</pre>

<script type="text/javascript">
	var editor = CKEDITOR.replace('editor1', {
		 language: 'zh-cn',
		 customConfig: '',
		 height: "300px",
		 allowedContent: 'p[*]; b; a[*]; img[*]',
		 toolbar: [
			['Bold', 'RemoveFormat', '-', 'Cut', 'Copy', 'Paste', 'PasteText',
			'PasteFromWord', '-', 'Link', 'Unlink', '-', 'Image', '-', 'Maximize', 'Source']
		 ]
	 });
	 CKFinder.setupCKEditor( editor, {basePath : 'ckfinder/'} );
</script>
</body>
</html>